package com.kang.entity;

import cn.hutool.extra.pinyin.engine.houbbpinyin.HoubbPinyinEngine;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "chat_record_num",autoResultMap = true)
public class ChatRecordNum implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 发送用户id
     */
    private Integer sendUserId;

    /**
     * 接收用户id
     */
    private Integer reciveUserId;

    /**
     * 1：用户在线接收信息 2：用户不在线
     */
    private Integer status;


    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    public ChatRecordNum(Integer sendUserId, Integer reciveUserId, Integer status, Date createTime, Date updateTime) {
        this.sendUserId = sendUserId;
        this.reciveUserId = reciveUserId;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
